/**
 * amis v2.4.0
 * Copyright 2018-2022 baidu
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var tslib = require('tslib');
var React = require('react');
var amisCore = require('amis-core');
var amisUi = require('amis-ui');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

var MultilineTextField = /** @class */ (function (_super) {
    tslib.__extends(MultilineTextField, _super);
    function MultilineTextField() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MultilineTextField.prototype.render = function () {
        var _a = this.props, data = _a.data, originText = _a.text;
        var text = amisCore.resolveVariableAndFilter(originText, data, '| raw');
        return React__default["default"].createElement(amisUi.MultilineText, tslib.__assign({}, this.props, { text: text }));
    };
    return MultilineTextField;
}(React__default["default"].Component));
/** @class */ ((function (_super) {
    tslib.__extends(MultilineTextFieldRenderer, _super);
    function MultilineTextFieldRenderer() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MultilineTextFieldRenderer = tslib.__decorate([
        amisCore.Renderer({
            type: 'multiline-text'
        })
    ], MultilineTextFieldRenderer);
    return MultilineTextFieldRenderer;
})(MultilineTextField));

exports.MultilineTextField = MultilineTextField;
